﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.sybase;

namespace SharpSqlAnalyzer.stmt.sybase
{
	// Token: 0x020000E1 RID: 225
	public class TSybaseDeleteStatistics : TCustomSqlStatement
	{
		// Token: 0x060007BC RID: 1980 RVA: 0x00301136 File Offset: 0x002FF336
		public TSybaseDeleteStatistics(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstsybaseDeleteStatistics;
		}

		// Token: 0x17000168 RID: 360
		// (get) Token: 0x060007BD RID: 1981 RVA: 0x0030114A File Offset: 0x002FF34A
		// (set) Token: 0x060007BE RID: 1982 RVA: 0x00301152 File Offset: 0x002FF352
		public virtual TObjectNameList ColumnList
		{
			get
			{
				return this.columnList;
			}
			set
			{
				this.columnList = value;
			}
		}

		// Token: 0x17000169 RID: 361
		// (get) Token: 0x060007BF RID: 1983 RVA: 0x0030115B File Offset: 0x002FF35B
		// (set) Token: 0x060007C0 RID: 1984 RVA: 0x00301163 File Offset: 0x002FF363
		public virtual TObjectName TableName
		{
			get
			{
				return this.tableName;
			}
			set
			{
				this.tableName = value;
			}
		}

		// Token: 0x060007C1 RID: 1985 RVA: 0x0030116C File Offset: 0x002FF36C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			this.tableName = ((TDeleteStatisticsSqlNode)this.rootNode).TableName;
			this.columnList = ((TDeleteStatisticsSqlNode)this.rootNode).ColumnList;
			return 0;
		}

		// Token: 0x060007C2 RID: 1986 RVA: 0x003011B8 File Offset: 0x002FF3B8
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060007C3 RID: 1987 RVA: 0x003011C8 File Offset: 0x002FF3C8
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011EE RID: 4590
		private TObjectName tableName;

		// Token: 0x040011EF RID: 4591
		private TObjectNameList columnList;
	}
}
